<?php

use Connection\TcpConnection;

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__.'/Server.php';

$server = new Server('tcp://0.0.0.0:9999');

$server->onConnect = function (TcpConnection $connection){
    $connection->send("您好");
};

Server::run();
